<ul id="barra_navegacao">
	<li><a href="<?=$this->baseUrl ?>/admintextos/">Administrar Textos</a> &gt;</li>
	<li>Question&aacute;rio</li>
</ul>
<h2>Question&aacute;rio</h2>

<a href="<?=$this->baseUrl ?>/questionarios/novo/id/<?=$this->id_texto?>">Cadastrar nova pergunta</a>
<br />
<div id="respostas">
<table width="517" class="tabela_listagem" style="float: left;">
	<thead>
	<th>Pergunta</th>
	<th>Respostas</th>
	
    <th colspan="2">Opera&ccedil;&otilde;es</th>
	</thead>
    <?
    foreach($this->perguntas as $pergunta) {
	?>
	<tr>
	<td><?=$pergunta->pergunta?></td>
	<td><a href="<?=$this->baseUrl?>/questionarios/respostas/pergunta/<?=@$pergunta->id ?>"><?=count(@$pergunta->findRespostasByPerguntas())?> (ver)</a></td>
    <td><a href="<?=$this->baseUrl?>/questionarios/editar/id/<?=@$pergunta->id?>">editar</a></td>
    <td><a href="<?=$this->baseUrl?>/questionarios/apagar/id/<?=@$pergunta->id?>">apagar</a></td>
	</tr>
    <? } ?>
</table>
</div>
<div id="texto_lado">
<h2><?=$this->texto->titulo ?></h2>

<p><?=$this->texto_aux ?></p>
</div>